<?php

	$datasql = $db->fetch_array("SELECT * FROM ads_container 
                             WHERE `status` = 1
							 ORDER BY `order`");

	$xtpl = new XTemplate( "themes/".$global_config['themes']."/modules/main/container.tpl");
	
	foreach($datasql as $dt ){
		$dt['img'] = $nv_Request->chuyenLinkURL($dt['img'],$global_config['img']);
		$xtpl->assign('container',$dt);
		$xtpl->parse('main.container');		
	}
	$xtpl->parse( 'main' );
	$data .= $xtpl->text('main');


?>

